package com.pd.conf;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class RabbitmqConfig {
    //设置使用的队列参数
    //封装在 Queue 对象中
    @Bean
    public Queue orderQueue() {
        return new Queue("orderQueue",true,false,false);
    }
}
